package com.futu.scenicspot.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 景点注意事项表
 * @TableName h_notice
 */
@TableName(value ="h_notice")
@Data
public class HNotice implements Serializable {
    /**
     * 注意事项ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 关联景点ID
     */
    private Long scenicSpotId;

    /**
     * 语言版本
     */
    private String language;

    /**
     * 门票政策（如优惠票、预约制）
     */
    private String ticketPolicy;

    /**
     * 禁止行为（如吸烟、投喂动物）
     */
    private String forbiddenActions;

    /**
     * 安全提示（如防滑、高原反应）
     */
    private String safetyTips;

    /**
     * 
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HNotice other = (HNotice) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getScenicSpotId() == null ? other.getScenicSpotId() == null : this.getScenicSpotId().equals(other.getScenicSpotId()))
            && (this.getLanguage() == null ? other.getLanguage() == null : this.getLanguage().equals(other.getLanguage()))
            && (this.getTicketPolicy() == null ? other.getTicketPolicy() == null : this.getTicketPolicy().equals(other.getTicketPolicy()))
            && (this.getForbiddenActions() == null ? other.getForbiddenActions() == null : this.getForbiddenActions().equals(other.getForbiddenActions()))
            && (this.getSafetyTips() == null ? other.getSafetyTips() == null : this.getSafetyTips().equals(other.getSafetyTips()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getScenicSpotId() == null) ? 0 : getScenicSpotId().hashCode());
        result = prime * result + ((getLanguage() == null) ? 0 : getLanguage().hashCode());
        result = prime * result + ((getTicketPolicy() == null) ? 0 : getTicketPolicy().hashCode());
        result = prime * result + ((getForbiddenActions() == null) ? 0 : getForbiddenActions().hashCode());
        result = prime * result + ((getSafetyTips() == null) ? 0 : getSafetyTips().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", scenicSpotId=").append(scenicSpotId);
        sb.append(", language=").append(language);
        sb.append(", ticketPolicy=").append(ticketPolicy);
        sb.append(", forbiddenActions=").append(forbiddenActions);
        sb.append(", safetyTips=").append(safetyTips);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}